package com.czhi.dubbo.rest.service.impl;

import com.czhi.dubbo.rest.service.ProviderService;
import org.apache.dubbo.config.annotation.Service;

import javax.ws.rs.GET;
import javax.ws.rs.Path;

@Path("/")
@Service(interfaceClass = ProviderService.class,protocol = "rest")
public class ProviderServiceImpl implements ProviderService {
    @Override

    @Path("/rest/info")
    @GET
    public String getInfo() {
        return "hello rest dubbo";
    }
}
